import { Router, Route, Link, BrowserRouter, Switch, useHistory } from 'react-router-dom'
import { React, useEffect, useState } from 'react';
import { Layout, Menu, Breadcrumb } from 'antd';
import { Redirect } from 'react-router'
import SubjectOneTest from './subjectOneTest'
import {checkLogin} from '../../utils/loginUtils/loginMethod'
import { message, Button } from 'antd';
export default () => {
    const history = useHistory()
    if (!checkLogin()) {
        message.error('请先登录')
        history.push('/user')
    }
    return (
        <>
            <SubjectOneTest />
        </>
    )
}